package main

import (
	"cloud-stm32-cld-platform/config"
	"cloud-stm32-cld-platform/cons"
	"cloud-stm32-cld-platform/handler"

	"github.com/gin-gonic/gin"
	"github.com/sirupsen/logrus"
)

func doInit() {
	config.GlobalConfigCenter.Sets(map[string]interface{}{cons.DefCnfKey_LOGGER: logrus.New()})
}

func main() {
	doInit()
	r := gin.Default()
	handler.Register(r)
	_ = r.Run()
}
